package com.yanlin.apipassenger.controller;

import com.yanlin.internalcommon.dto.ResponseResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>标题：TestController</p>
 * <p>功能：</p>
 * <p>
 * 其他说明：
 * </p>
 * <p>审核：</p>
 * <p>重构：</p>
 * <p>创建日期：2025-06-04 15:56</p>
 *
 * @author yanlin
 */
@RestController
public class TestController {

    @GetMapping("/test")
    public String test(){
        return "test api passenger";
    }

    @RequestMapping("/auth-test")
    public ResponseResult authTest() {
        return ResponseResult.success("auth test");
    }

    @RequestMapping("/noauth-test")
    public ResponseResult noauthTest() {
        return ResponseResult.success("no auth test");
    }
}